export default {
    set(key,value){
        sessionStorage.setItem(key,JSON.stringify(value))
    },
    get(key){
        return JSON.parse(sessionStorage.getItem(key))
    },
    remove(key){
        sessionStorage.removeItem(key)
    },
    clear(){
        sessionStorage.clear()
    },
    isKey(key){
        let rst = sessionStorage.getItem(key)
        if(rst){
            return true
        }else{
            return false
        }
    },

}